<!--顶部登陆-->
	<div class="page_top_nav_long">
		<div class="page_top_nav">
			<!--顶部左边-->
			<ul class="page_top_nav_l">
				<li class="s-hw" style="background-image: none;padding-left: 0px;"><a href="index.php" style="padding-left: 0px;">华为官网</a></li>
			</ul>
			<!--顶部右边-->
			<ul class="page_top_nav_r">
				{{if value="isset($_SESSION['username'])"}}
				<!--如果有登陆，才显示-->
				<li style="display: list-item;" class="s-user hide" id="login_status">
					<div class="s-dropdown">
						<div class="h">
							<a href="{{U('User/index')}}" id="customer_name" rel="nofollow" timetype="timestamp" class="link-user">{{$_SESSION['username']}}</a>
							 <em class="vip-state" id="vip-info">
								<a href="#" title="VMALL V0会员" id="vip-Active"><i class="icon-vip-level-0"></i>&nbsp;</a>
							</em>
							<s></s>
						</div>
						<div class="b">
							<p><a href="{{U('User/index')}}" target="_blank" id="user-center">我的华为帐号</a>&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="{{U('Login/out')}}">退出</a></p>
						</div>
					</div>
				</li>
				{{else}}
				<!--如果没有登录才会显示-->
				<li class="login">
					<a href="{{U('Login/index')}}" class="login">登陆</a>
					<a href="{{U('Register/index')}}" class="page_top_nav_r_a">注册</a>
				</li>
				{{endif}}
				<li>
					<a href="{{U('User/index')}}" class="page_top_nav_r_a">我的订单</a>
				</li>
			</ul>	
		</div>
	</div>
	<!--顶部登录结束-->
	<!--头部logo开始-->
	<div class="header_long">
		<div class="header">
			<!--logo-->
			<div class="logo">
				<a href="index.php"><img src="{{__PUBLIC__}}/Home/images/newLogo.png"/></a>
			</div>
			<!--搜索-->
			<div class="search">
				<div class="form_body">
					<form action="" method="post">
						<input type="text" name="" id="search_text" value="" placeholder="iphone7"/>
						<input type="submit" value="搜索" id="searcg_botton"/>
					</form>
				</div>
				<div class="search_keywords">
					<b>热门搜索：</b>
					<a href="">荣耀7</a>
					<a href="">5X</a>
					<a href="">4A</a>
					<a href="">P8</a>
					<a href="">4C</a>
					<a href="">热门配件</a>
				</div>
			</div>
			<div class="header_toolbar">
				<div class="header_my_shop">
					<div class="i-mall">
						<div class="h">
							<a href="{{U('User/index')}}">我的商城</a>
							<i></i>
							<s></s>
						</div>
					</div>
				</div>
				<div class="header_my_shoppingcar">
					<div class="h" id="header-toolbar-minicart-h">
						<a href="{{U('Cart/index')}}">我的购物车
							<?php if((isset($_SESSION['cart'])?$_SESSION['cart']:null)) {?>
							<span><em id="header-cart-total">{{$_SESSION['cart']['total_rows']}}</em><b></b></span>
							<?php }else{ ?>
								<span><em id="header-cart-total">0</em><b></b></span>
							<?php } ?>
						</a><i></i><s></s><u></u>
					</div>
					<div class="header-toolbar-minicart-content">
				<?php if(!(isset($_SESSION['cart'])?$_SESSION['cart']:null)) {?>		
						<!--如果购物车是空的-->
					<div class="minicart-pro-empty" id="minicart-pro-empty">
						<span class="icon-minicart">您的购物车是空的，赶紧选购吧！</span>
					</div>
					<!--如果购物车不是空的-->
						<?php }else{ $data = $_SESSION['cart'];?>
					<!--商品列表-->
					<div style="display: block;" id="minicart-pro-list-block">
						<ul class="minicart-pro-list" id="minicart-pro-list">
						<!--microCartList start-->
						{{foreach from="$data['goods']" key="$goods_k" value="$goods_v"}}
						<li class="minicart-pro-item">
							<div class="pro-info">
								<div class="p-img">
									<a href="" title="" target="_blank">
										<img src="{{__ROOT__}}/{{$goods_v['pic']}}" >
									</a>
								</div>
								<div class="p-name">
									<a href="/product/1179.html#1988" target="_blank">{{$goods_v['name']}}
										{{foreach from="$goods_v['options']" key="$options_k" value="$options_v"}}
										<span class="p-slogan"><b style="color: red;">{{$options_k}}:</b>{{$options_v}}</span>
										{{endforeach}}
										<span class="p-promotions hide"></span>
									</a>
								</div>
								<div class="p-status">
									<div class="p-price">
										<b>¥&nbsp;{{$goods_v['price']}}.00</b>
										<em>x</em>
										<span>{{$goods_v['num']}}</span>
									</div>
									<div class="p-tags"></div>
								</div>
								<a href="{{U('Index/del',array('k'=>$goods_k))}}" class="icon-minicart-del" title="删除" >删除</a>
							</div>
						</li>
						{{endforeach}}
					</div>
					<!--购物车总计，去结算-->
						<div style="display: block;" class="minicart-pro-settleup" id="minicart-pro-settleup">
							<p>共<em id="micro-cart-total">{{$data['total_rows']}}</em>件商品，金额合计<b id="micro-cart-totalPrice">¥&nbsp;{{$data['total']}}.00</b></p>
							<a class="button-minicart-settleup" href="{{U('Cart/index')}}">去结算</a>
						</div>
						<?php } ?>
					</div>
				</div>
			</div>
			<!--<div class="header-qrcode">
				<img src="{{__PUBLIC__}}/Home/images/qrcode_vmall_wechat01.jpg" width="76px"height="76px"/>
				<p>扫描下载客户端</p>
			</div>-->
		</div>
	</div>
	<!--头部logo结束-->